|
|
|
|
|
|
|
ANSI Standard SQL Versus Microsoft Jet SQL |
|
|
|
|
|
|
|
|
SQL syntax is determined by a committee that is part of the American National Standards Institute (ANSI). The ANSI-SQL committee is made up of information systems professionals who take on the job of establishing and enforcing standards on the rapidly moving computer-programming industry. Although each computer-programming language and database interface has its own unique version of SQL, nearly everyone has agreed to adhere to the basic standards defined by the ANSI-SQL committee. The most widely used SQL standard is SQL-89. This standard was first promulgated in 1989. An updated set of standards (SQL-92) was developed three years later. |
|
|
|
|
|
|
|
|
Within each set of SQL standards, there are three levels of compliance. A database product must meet Level I compliance in order to call itself an SQL-compatible product. Levels II and III are optional levels of compliance that products can also attain in order to increase interoperability among database systems. |
|
|
|
|
|
|
|
|
The Microsoft Jet database engine that is used to process all Visual Basic SQL statements is ANSI SQL-89 Level I compliant. There are very slight differences between ANSI SQL-89 and Microsoft Jet SQL at Level II and Level III. We won't dwell on these differences here. Those who are interested in learning more about ANSI SQL standards and Microsoft Jet compliance can find additional documentation elsewhere. The lessons in this book focus strictly on the Microsoft Jet SQL syntax. Be assured that once you master the concepts covered here, you will be able to use the same skills in almost all SQL-based programming and query tools you encounter. |
|
|
|
|
|
|
|
|
Now it's time to start building SQL statements. If you haven't already done so, load the Visual Basic Visdata application you learned about on Day 7. Using Visdata, load the BOOKS5.MDB that is included in the \TYSDBVB5\SOURCE\DATA directory of the CD that ships with this book. You will use this database for most of today's lesson. |
|
|
|
|
| |
|
|
|
|
This book shows reserved SQL words in uppercase letters (for example, SELECT). This is not required by Visual Basic, but it is a good programming habit. |
|
|
|
|
|
|
|